package com.photoeditor.demo.model.bean.face;

import android.os.Parcel;
import android.os.Parcelable;

public class FaceRectBean implements Parcelable {

    private int left;
    private int top;
    private int width;
    private int height;
    private int age;
    private String gender;

    private float effectLeft;
    private float effectTop;
    private float effectRight;
    private float effectBottom;
    private boolean omitted = false;

    public FaceRectBean() {
    }

    public int getLeft() {
        return left;
    }

    public void setLeft(int left) {
        this.left = left;
    }

    public int getTop() {
        return top;
    }

    public void setTop(int top) {
        this.top = top;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public float getEffectLeft() {
        return effectLeft;
    }

    public void setEffectLeft(float effectLeft) {
        this.effectLeft = effectLeft;
    }

    public float getEffectTop() {
        return effectTop;
    }

    public void setEffectTop(float effectTop) {
        this.effectTop = effectTop;
    }

    public float getEffectRight() {
        return effectRight;
    }

    public void setEffectRight(float effectRight) {
        this.effectRight = effectRight;
    }

    public float getEffectBottom() {
        return effectBottom;
    }

    public void setEffectBottom(float effectBottom) {
        this.effectBottom = effectBottom;
    }

    public boolean isOmitted() {
        return omitted;
    }

    public void setOmitted(boolean omitted) {
        this.omitted = omitted;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.left);
        dest.writeInt(this.top);
        dest.writeInt(this.width);
        dest.writeInt(this.height);
        dest.writeInt(this.age);
        dest.writeString(this.gender);
    }

    protected FaceRectBean(Parcel in) {
        this.left = in.readInt();
        this.top = in.readInt();
        this.width = in.readInt();
        this.height = in.readInt();
        this.age = in.readInt();
        this.gender = in.readString();
    }

    public static final Creator<FaceRectBean> CREATOR = new Creator<FaceRectBean>() {
        @Override
        public FaceRectBean createFromParcel(Parcel source) {
            return new FaceRectBean(source);
        }

        @Override
        public FaceRectBean[] newArray(int size) {
            return new FaceRectBean[size];
        }
    };
}
